import { useSearchParams } from "react-router-dom";
import { use, useEffect } from "react";

function Detail() {
    const [searchParams] = useSearchParams()
    const id = searchParams.get('id')
    const name = searchParams.get('name')
    console.log(id)  //1
    console.log(name) //xiejie

    useEffect(()=>{

    })

  return (
    <div>详情页</div>
  );
}

export default Detail;